// 学生类，描述21计科本7-郭保罗的学生信息
public class Student {
    private String name;
    private int age;
    private String gender;

    public Student(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    // 自我介绍方法
    public void introduce() {
        System.out.println("我叫" + name + "，今年" + age + "岁，性别" + gender + "，是21计科本7的学生。");
    }
}
